package com.ruoyi.system.domian.service;

import com.ruoyi.system.domian.jpa.CdUserJpa;
import com.ruoyi.common.core.domain.model.CdUser;

/**
 * @author Dale Mao    ---多多 Email:453918229@qq.com
 * @description CdUserService
 * @date 2021-01-26 13:40
 */
public interface CdUserService {

   /**
    * 添加用户
    * @param userJpa
    * @return
    */
   int  addUser(CdUserJpa userJpa);

   /**
    * 获取用户的信息
    * @param cdUserJpa
    * @return
    */
   CdUserJpa getUserInfo(CdUserJpa cdUserJpa);


   /**
    * 用户登录处理
    * @param cdUserJpa
    * @return
    */
   CdUserJpa login(CdUserJpa cdUserJpa);

   /**
    * 获取用户通过手机号码和密码
    * @param phone
    * @param password
    * @return
    */
   CdUserJpa getUserInfoByPhone(String phone);

   /**
    * 获取用户通过openId
    * @param openId
    * @return
    */
   CdUserJpa getUserInfoByOpenId(String openId,String unionId);
}
